<template>
  <div id="index">

    <el-row>
      <el-col :span="24">
        <commonheader></commonheader>
      </el-col>
    </el-row>

    <el-col :span="2" v-if="currentPage!='login'">
      <commonmeun></commonmeun>
    </el-col>

    <el-col :span="22">
      <router-view />
    </el-col>

  </div>
</template>

<script>
  import commonheader from '@/view/common/header'
  import commonmeun from '@/view/common/common-menu'

  export default {
    data () {
      return {
        currentPage:""
      }
    },
    components: {
      'commonheader': commonheader,
      'commonmeun': commonmeun
    },
    mounted () {
      this.currentPage=localStorage.getItem("currentPage")
    },
    watch:{
      $route(to,from){
        this.currentPage=localStorage.getItem("currentPage")
      }
    },

    methods:
      {},
  }
</script>

<style scoped>
  #app, html, body {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
</style>
